﻿<?xml version="1.0" encoding="utf-8" ?>
<hibernate-mapping xmlns="urn:nhibernate-mapping-2.2" assembly="Eg.Core" namespace="Eg.Core">
    <class name="Customer" table="Customer">
        <id name="CustomerId">
            <generator class="identity"/>
        </id>
        <property name="FirstName" not-null="false"/>
        <property name="LastName" not-null="false"/>
        <set name="Orders" table="Orders" generic="true" inverse="true">
            <key column="Customer" foreign-key="FK_CustomerOrders"/>
            <one-to-many class="Eg.Core.Orders"/>
        </set>
    </class>
</hibernate-mapping>
